{include file="../../../application/admin/view/public/head" /}
<style>
    table {
        table-layout: fixed;
    }


    td {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .layui-field-box .layui-btn{
        margin: 3px 5px;
    }
</style>
<div class="page-container p10">

    <div class="my-toolbar-box">

        <div class="left mb10">
            <fieldset class="layui-elem-field">
                <legend>用户反馈</legend>

            </fieldset>
        </div>

    </div>


    <form class="layui-form " method="post" id="pageListForm">
        <table class="layui-table" lay-size="sm">
            <thead>
            <tr>
                <th width="200">应用名称</th>
                <th width="200">设备号</th>
                <th width="50">版本号</th>
                <th >反馈内容</th>
                <th width="50">阅读状态</th>
                <th width="180">更新时间</th>
                <th width="200">操作</th>
            </tr>
            </thead>

            {volist name="list" id="vo"}
            <tr>
                <td >{$vo.app_id}<br/>{$vo.app_name}</td>
                <td >
                    {$vo.device_id}<br/>
                    {$vo.device_name}<br/>
                    {$vo.contact}
                </td>
                <td>{$vo.app_version}</td>
                <td>
                     {$vo.content}
                </td>
                <td>{$vo.is_admin_read==1?'已读':'未读'}</td>
                <td>{$vo.time_added|mac_day=color}</td>
                <td>
                    <a class="layui-badge-rim j-iframe" data-full="1" data-href="{:url('detail?device_id='.$vo['device_id'].'&app_id='.$vo['app_id'])}" href="javascript:void(0);" title="编辑">详情</a>
                </td>
            </tr>
            {/volist}
            </tbody>
        </table>
        <div id="pages" class="center"></div>
    </form>
</div>




{include file="../../../application/admin/view/public/foot" /}

<script type="text/javascript">
    var curUrl="{:url('feedback/index',$param)}";
    layui.use(['laypage', 'layer','form'], function() {
        var laypage = layui.laypage
                , layer = layui.layer,
                form = layui.form;

        laypage.render({
            elem: 'pages'
            ,count: {$total}
            ,limit: {$limit}
            ,curr: {$page}
            ,layout: ['count', 'prev', 'page', 'next', 'limit', 'skip']
            ,jump: function(obj,first){
                if(!first){
                    location.href = curUrl.replace('%7Bpage%7D',obj.curr).replace('%7Blimit%7D',obj.limit);
                }
            }
        });


    });

</script>
</body>
</html>